﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace Comisiones.Models
{
    public class TarifaGrupoTrans
    {
        //Llaves primarias y foraneas
        [Key,Column(Order = 0)]public int tar_idTarifario { get; set; }
        [Key, Column(Order = 1)]public int gtx_idGrupo { get; set; }

        //atributos
        public bool? tgt_tieneRango { get; set; }
        public double? tgt_montoFijo { get; set; }
        [DisplayFormat(ConvertEmptyStringToNull = false)]
        public string tgt_moneda { get; set; }

        //objetos correspondientes a las llaves foraneas
        [ForeignKey("tar_idTarifario")]
        public Tarifario tarifario { get; set; }
        [ForeignKey("gtx_idGrupo")]
        public GrupoTransaccion grupoTransaccion { get; set; }

    }
}